/*************************************************************************
	> File Name: stock.h
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年11月25日 星期四 22时44分21秒
 ************************************************************************/

#include<iostream>
#include <string>

struct Stock1
{
	void sell()
	{
		std::cout << "卖出股票１；" << std::endl;
	}

	void buy()
	{
		std::cout << "买入股票１；" << std::endl;
	}
};

struct Stock2
{
	void sell()
	{
		std::cout << "卖出股票２；" << std::endl;
	}
	
	void buy()
	{
		std::cout << "买入股票２；" << std::endl;
	}
};

struct NationalDebt1
{
	void sell()
	{
		std::cout << "卖出债券１；" << std::endl;
	}

	void buy()
	{
		std::cout << "买入债券１；" << std::endl;
	}
};

struct Realty1
{
	void sell()
	{
		std::cout << "卖出房产１；" << std::endl;
	}

	void buy()
	{
		std::cout << "买入房产１；" << std::endl;
	}
};

struct Fund
{
	Stock1 g1;
	Stock2 g2;
	NationalDebt1 n1;
	Realty1 r1;

	void buyFund()
	{
		g1.buy();
		g2.buy();
		n1.buy();
		r1.buy();
	}

	void sellFund()
	{
		g1.sell();
		g2.sell();
		n1.sell();
		r1.sell();
	}
};
